<template>
	<view>
		<view class="content">
			<mp-html :content='data.workConfig'></mp-html>
		</view>
		
	</view>
	<tabbar currentPages="工作台"></tabbar>
</template>

<script setup lang="ts">
	import { dealHtml } from '@/hooks/useFunction'
	import { reactive , ref } from 'vue';
	import { onShow,onLoad } from '@dcloudio/uni-app'
	import api from '@/api'
	let data = reactive<any>({
		workConfig:'',
	})	

	const getConfig = async () => {
		const res : any = await api({
			method: "get",
			url: `/mall/content/backend-configs/getOtherNotifications`
		})
		data.workConfig = dealHtml(res.data['xjs.notifications.user.workspace'])
	}

	onLoad(() => {
		
	})
	onShow(async() => {
		getConfig()
	})
</script>

<style lang="scss" scoped>
	.content{
		min-height: 100vh;
		background-color: #fff;
		padding:32rpx;
		box-sizing: border-box;
	}
</style>